package com.hk.service.impl;

import com.hk.dao.ImageDao;
import com.hk.model.Image;
import com.hk.service.IImageService;

import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/18 19:52
 * State：公共照片业务逻辑层
 */
public class ImageServiceImpl implements IImageService {


    @Override
    public List<Image> findAllImage() {
        ImageDao imageDao = new ImageDao();
        List<Image> images = imageDao.findAllImage();
        if (images == null && images.isEmpty()) {
            System.out.println("暂无公共照片");
            return null;
        }
        return images;
    }
}
